package com.gjs.freechat.utils;

import java.io.File;
import java.io.IOException;

public class FileUtils {
	public static File createNewFile(String fileName) {
		File file = new File(fileName);
		try {
			file.createNewFile();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return file;
	}
	
	public static void createDirectory(String dirName) {
		File dir = new File(dirName);
		if (!dir.exists()) {
			dir.mkdir();
		}
	}
	
	public static void createDirectorys(String dirNames) {
		File dir = new File(dirNames);
		if (!dir.exists()) {
			dir.mkdirs();
		}
	}
}
